<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>学生注册</title>
    <link href="static/bootstrap-3.4.1-dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="static/js/jquery.min.js"></script>
    <script src="static/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
</head>
<body>
<div style="width:50%;height:50%;position:absolute;top:25%;left:35%;">
    <div style="width: 580px;vertical-align: middle;text-align: center;">
        <h2>学生注册</h2>
    </div>
    <form class="form-horizontal" action="/register.do" method="get">
        <div class="form-group">
            <label class="col-sm-2 control-label">学号：</label>
            <div style="width:40%" class="col-sm-10">
                <input class="form-control" name="studentId" placeholder="请输入学号" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">密码：</label>
            <div style="width:40%" class="col-sm-10">
                <input type="password" class="form-control" name="password" placeholder="请输入密码" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">确认密码：</label>
            <div style="width:40%" class="col-sm-10">
                <input type="password" class="form-control" name="confirmPassword" placeholder="请再次输入密码" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">姓名：</label>
            <div style="width:40%" class="col-sm-10">
                <input class="form-control" name="name" placeholder="请输入姓名" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">年级：</label>
            <div style="width:40%" class="col-sm-10">
                <input class="form-control" name="grade" placeholder="请输入年级" required>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">班级：</label>
            <div style="width:40%" class="col-sm-10">
                <input class="form-control" name="className" placeholder="请输入班级" required>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-info">注册</button>
                <button type="button" class="btn btn-info" style="margin-left: 10px;" onclick="location.href='logout.do'">重置</button>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <p>已有账号？<a href="#">去登录</a></p>
            </div>
        </div>
    </form>
</div>
</body>
</html>